﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using ZhimeiSoft.Framework.Server.Connector.Factory;
using ZhimeiSoft.Framework.Server.Connector.BLL.Interface;
using ZhimeiSoft.Framework.Server.Connector.DAL.Interface;
using ZhimeiSoft.Framework.Common.Entity;

namespace ZhimeiSoft.Framework.Server.Connector.BLL
{
    public class UserBLL : IUserBLL
    {
        IUserDal userDal;
        public UserBLL()
        {
            userDal = DalFactory.CreateUserDal();
        }

        #region IUserBLL Members

        public DataSet GetAllUsers()
        {
            return userDal.GetAllUsers();
        }

        public void InsertUser(UserEntity user)
        {
            userDal.InsertUser(user);
        }

        public void UpdateUser(UserEntity user)
        {
            userDal.UpdateUser(user);
        }

        public void DeleteUser(int id)
        {
            userDal.DeleteUser(id);
        }

        #endregion
    }
}
